import { createApp } from 'vue'
import App from './App.vue'
import Toast from '@/components/toast';

const app = createApp(App)
app.use(Toast);
app.mount('#app')
// 挂载 $toast 方法
app.config.globalProperties.$toast = Toast

declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $toast: typeof Toast;
  }
}
